<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PouzivatelTriedaType
 *
 * @author Jozef Kováč
 */
namespace Acme\MainBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class PouzivatelTriedaType extends AbstractType {
    
    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder->add('trieda','entity', array (
                      'class'=>'AcmeMainBundle:Trieda',
                      'property'=>'nazov',
                      'label'=>'Ročník*',
                      'max_length'=>'5',
                      //'error_bubbling'=>true,
                     ));
        parent::buildForm($builder, $options);        
    }
    
    public function getName() {
        return 'pouzivatelTrieda';
    }
}

?>
